<%@ page language="java" pageEncoding="utf-8"%>
	<script type="text/javascript">
		function goPageSubmit(topageindex){
			var form = document.forms[0];
			form.currPage.value=topageindex;
			form.submit();
		}
	</script>
  <div class="pageindexbar">
  <span>共${pageView.totalrecord }条记录</span><span>总页数：${pageView.totalpage} </span>
  
	<c:forEach begin="${pageView.pageindex.startIndex}" end="${pageView.pageindex.endIndex}" var="index">
		<c:choose>
		<c:when test="${pageView.currentpage==index}">
		<a href="javascript:goPageSubmit('${index}')" class="curpage">第${index}页</a></c:when>
		<c:otherwise ><a href="javascript:goPageSubmit('${index}')" >第${index}页</a></c:otherwise>
		</c:choose>
	</c:forEach>  
	
	<span>Go: <html:text property="currPage" value="${pageView.currentpage}" style="width:30px; height:18px; border:1px solid white;" ></html:text></span>
	<html:hidden property="totalPages" value="${pageView.totalpage}"></html:hidden>
  </div>
